package com.sdy.dcsb.biz.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sdy.common.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author Snaky
 * 封装接口线程配置信息
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class EsbEncapsulationThread extends BaseModel {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 封装接口id
     */
    private Integer encapsulationId;
    /**
     * 线程序号
     */
    private Integer threadOrder;
    /**
     * 接口顺序
     */
    private Integer sequence;
    /**
     * 线程中包含的接口服务id
     */
    private Integer serviceId;

    /**
     * 创建日期
     */
    @JsonFormat(pattern = DATETIME_FORMAT)
    private Date createDate;
    /**
     * 更新日期
     */
    @JsonFormat(pattern = DATETIME_FORMAT)
    private Date updateDate;
}
